package com.jxk.springcloud.service.impl;

import com.jxk.springcloud.dao.PaymentDao;
import com.jxk.springcloud.entities.Payment;
import com.jxk.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName : PaymentServiceImpl  //类名
 * @Description :   //描述
 * @Author : jxk  //作者
 * @Date: 2020-09-05 09:52  //时间
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment){
        return paymentDao.create(payment);
    }

    public Payment getPaymentById( Long id){

        return paymentDao.getPaymentById(id);

    }
}
